﻿namespace WebApplication1.Security
{
    public class RedisAuthUser
    {
        public string Id { get; set; } = null!;
        public string UserName { get; set; } = null!;
        public List<string> Roles { get; set; } = null!;
        public void SetUser(RedisAuthUser user)
        {
            this.Id = user.Id;
            this.UserName = user.UserName;
            this.Roles = user.Roles;

        }
    }
}
